package lab02.test35;

public class Application {
    public static void main(String[] args) {

        Manager manager = new Manager();
        Salesman salesman = new Salesman();
        Worker worker  =new Worker();

        manager.setName("经理张三");

        salesman.setName("销售李四");

        worker.setName("工人王五");
        worker.setDays(20);

        System.out.println(manager.getName()+"的工资是："+manager.comouteSalary());
        System.out.println(salesman.getName()+"的工资是："+salesman.comouteSalary());
        System.out.println(worker.getName()+"的工资是："+worker.comouteSalary());
    }
}
